package org.jeecg.modules.online.cgform.model;

/* renamed from: org.jeecg.modules.online.cgform.model.c */
/* loaded from: hibernate-re-3.7.1-RC.jar:org/jeecg/modules/online/cgform/model/c.class */
public class OnlForeignKey {

    /* renamed from: a */
    private String f410a;

    /* renamed from: b */
    private String f411b;

    /* renamed from: c */
    private String f412c;

    public void setField(String field) {
        this.f410a = field;
    }

    public void setTable(String table) {
        this.f411b = table;
    }

    public void setKey(String key) {
        this.f412c = key;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof OnlForeignKey) {
            OnlForeignKey onlForeignKey = (OnlForeignKey) o;
            if (onlForeignKey.m268a(this)) {
                String field = getField();
                String field2 = onlForeignKey.getField();
                if (field == null) {
                    if (field2 != null) {
                        return false;
                    }
                } else if (!field.equals(field2)) {
                    return false;
                }
                String table = getTable();
                String table2 = onlForeignKey.getTable();
                if (table == null) {
                    if (table2 != null) {
                        return false;
                    }
                } else if (!table.equals(table2)) {
                    return false;
                }
                String key = getKey();
                String key2 = onlForeignKey.getKey();
                return key == null ? key2 == null : key.equals(key2);
            }
            return false;
        }
        return false;
    }

    /* renamed from: a */
    protected boolean m268a(Object obj) {
        return obj instanceof OnlForeignKey;
    }

    public int hashCode() {
        String field = getField();
        int hashCode = (1 * 59) + (field == null ? 43 : field.hashCode());
        String table = getTable();
        int hashCode2 = (hashCode * 59) + (table == null ? 43 : table.hashCode());
        String key = getKey();
        return (hashCode2 * 59) + (key == null ? 43 : key.hashCode());
    }

    public String toString() {
        return "OnlForeignKey(field=" + getField() + ", table=" + getTable() + ", key=" + getKey() + ")";
    }

    public String getField() {
        return this.f410a;
    }

    public String getTable() {
        return this.f411b;
    }

    public String getKey() {
        return this.f412c;
    }

    public OnlForeignKey() {
    }

    public OnlForeignKey(String str, String str2) {
        this.f412c = str2;
        this.f410a = str;
    }
}
